var api = require('../util/api.js');
Page({

  data: {

  },

  onLoad: function () {
    let _this = this;
    let chain = api.chain();
    api.get(`${api.url.ljcy}/${chain.ljcyId}`).then(res => {
      let pic = res.data.signature;
      api.preBase64Img(pic, function (imgMap) {
        _this.setData({
          item: res.data,
          signatureImg: imgMap[pic]
        });
      })
    })
  }
})